<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../vue.js"></script>
</head>
<body>

<!--绑定事件-->
<div id="mydiv">
    <!-- v-on: 简写为@ -->
    <div @click="count">{{content}}</div>

</div>

</body>
<script>
    new Vue({
        el:"#mydiv",
        data:{
            msg:"hello vue",
            content:"hello",
        },
        /*事件*/
        methods:{
            count:function () {
               this.content="word";
            }
        }
    });


</script>
</html>